/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aqu.persistencia.entity;

import java.io.Serializable;
import java.util.Collection;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

/**
 *
 * @author Verito Ramirez
 *         Victor Jaramillo
 */
@Entity
@Table(name = "con_tipoasiento")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "ConTipoAsiento.findAll", query = "SELECT s FROM ConTipoAsiento s"),
    @NamedQuery(name = "ConTipoAsiento.findByconCodigoTipAsi", query = "SELECT s FROM ConTipoAsiento s WHERE s.conCodigoTipAsi = :conCodigoTipAsi"),
    @NamedQuery(name = "ConTipoAsiento.findByconDetalleTipAsi", query = "SELECT s FROM ConTipoAsiento s WHERE s.conDetalleTipAsi = :conDetalleTipAsi")})
public class ConTipoAsiento implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @NotNull
    @Size(min = 1, max = 10)
    @Column(name = "CON_CODIGO_TIPASI")
    private String conCodigoTipAsi;
    @Size(max = 30)
    @Column(name = "CON_DETALLE_TIPASI")
    private String conDetalleTipAsi;
    
    
    public ConTipoAsiento() {
    }

    public ConTipoAsiento(String conCodigoTipAsi) {
        this.conCodigoTipAsi = conCodigoTipAsi;
    }

    public String getConCodigoTipAsi() {
        return conCodigoTipAsi;
    }

    public void setConCodigoTipAsi(String conCodigoTipAsi) {
        this.conCodigoTipAsi = conCodigoTipAsi;
    }

    public String getConDetalleTipAsi() {
        return conDetalleTipAsi;
    }

    public void setConDetalleTipAsi(String conDetalleTipAsi) {
        this.conDetalleTipAsi = conDetalleTipAsi;
    }

    

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (conCodigoTipAsi != null ? conCodigoTipAsi.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ConTipoAsiento)) {
            return false;
        }
        ConTipoAsiento other = (ConTipoAsiento) object;
        if ((this.conCodigoTipAsi == null && other.conCodigoTipAsi != null) || (this.conCodigoTipAsi != null && !this.conCodigoTipAsi.equals(other.conCodigoTipAsi))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "clases.ConTipoAsiento[ conCodigoTipAsi=" + conCodigoTipAsi + " ]";
    }
    
}
